package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.RoomStatus;
import com.ruoyi.system.mapper.RoomStatusMapper;
import com.ruoyi.system.service.IRoomStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 房间状态Service业务层处理
 * 
 * @author 强盛酒店
 * @date 2023-03-09
 */
@Service
public class RoomStatusServiceImpl implements IRoomStatusService 
{
    @Autowired
    private RoomStatusMapper roomStatusMapper;

    /**
     * 查询房间状态
     * 
     * @param id 房间状态主键
     * @return 房间状态
     */
    @Override
    public RoomStatus selectRoomStatusById(Long id)
    {
        return roomStatusMapper.selectRoomStatusById(id);
    }

    /**
     * 查询房间状态列表
     * 
     * @param roomStatus 房间状态
     * @return 房间状态
     */
    @Override
    public List<RoomStatus> selectRoomStatusList(RoomStatus roomStatus)
    {
        return roomStatusMapper.selectRoomStatusList(roomStatus);
    }

    /**
     * 新增房间状态
     * 
     * @param roomStatus 房间状态
     * @return 结果
     */
    @Override
    public int insertRoomStatus(RoomStatus roomStatus)
    {
        return roomStatusMapper.insertRoomStatus(roomStatus);
    }

    /**
     * 修改房间状态
     * 
     * @param roomStatus 房间状态
     * @return 结果
     */
    @Override
    public int updateRoomStatus(RoomStatus roomStatus)
    {
        return roomStatusMapper.updateRoomStatus(roomStatus);
    }

    /**
     * 批量删除房间状态
     * 
     * @param ids 需要删除的房间状态主键
     * @return 结果
     */
    @Override
    public int deleteRoomStatusByIds(Long[] ids)
    {
        return roomStatusMapper.deleteRoomStatusByIds(ids);
    }

    /**
     * 删除房间状态信息
     * 
     * @param id 房间状态主键
     * @return 结果
     */
    @Override
    public int deleteRoomStatusById(Long id)
    {
        return roomStatusMapper.deleteRoomStatusById(id);
    }
}
